<template>
    <div class="main-container">
        <div style="background-color: #fff; height:100%">
            <a-tabs   :lazy-load="true" type="card" @change="tabsChange" justify>
                <a-tab-pane title="整理配方制单" key="1">
                    <RecipePreparationVue></RecipePreparationVue>
                </a-tab-pane>
                <a-tab-pane title="整理配方制单查询" key="2">
                    <RecipePreparationQuery></RecipePreparationQuery>
                </a-tab-pane>
            </a-tabs>
        </div>
    </div>
</template>

<script lang="ts">
import { defineComponent, reactive, ref, onMounted } from 'vue'
import emitter from '@/hooks/useEventBus'
import RecipePreparationVue from '@/components/Special/RecipePreparation.vue'
import RecipePreparationQuery from '@/components/Special/RecipePreparationQuery.vue'

export default defineComponent({
    name: 'RecipePreparation',
    components: { RecipePreparationVue ,RecipePreparationQuery},
    setup() {

        const tabsChange = (e: string | number) => {
            emitter.emit('window-change')
        }

        return {
            tabsChange
        }
    }
})
</script>

<style scoped>
.main-container {
    height: 100%;
}
:deep(.ag-cell) {
    border-right: 1px solid #dde2eb;
}
:deep(.ag-header-cell){
    border-right: 1px solid #dde2eb;
}
:deep(.arco-table-th){
    border-right: 1px solid var(--color-neutral-3) ;
}
:deep(.arco-table-td){
    border-right: 1px solid var(--color-neutral-3) ;
}

</style>